package org.sang.mapper;

import org.sang.controller.form.ExamCategoryForm;
import org.sang.pojo.dto.ExamCategoryDTO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ExamCategoryMapper {

     int addExamCategory(ExamCategoryDTO examCategoryDTO);

     int editCategory(ExamCategoryDTO examCategory);

     int deleteById(Integer id);

     List<ExamCategoryDTO> getAllCategories();

     List<ExamCategoryDTO> findCategoriesByCondition(ExamCategoryForm from);

}
